<div class="content_filtro">
    
    <h2><?php echo $this->titulo;?></h2>
    
    <div class="filtro">
        <form id="form_filtro" method="get" action="">
            <input type="text" name="dscfiltro" value="<?php echo $this->dscfiltro; ?>" placeholder="E-mail" />


            <input type="submit" class="btn-pdr" name="buscar" value="buscar" />
        </form>
    </div>
    
    <div class="content-btn">
        <span>Novo</span><a href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'edit', 'id' => '')); ?>">+</a>
    </div>
    
</div>

<div class="content-list">
    
    <table id="tlist">
        <thead>
            <tr>
                <th>E-mail</th>
                <th>Usuário</th>
                <th>Módulo</th>
                <th>SMTP</th>
                <th class="bc">&nbsp;</th>
            </tr>
        </thead>
        <tbody>
            <?php foreach ($this->result as $row) { 
                
                $arr = array(
                    '' => '',
                    'contato'   => 'Contato',
                    'interesse' => 'Interesse por produto',
                );
            ?>
                <tr>
                    <td><?php echo $row['EML_EML']; ?></td>
                    <td><?php echo $row['EML_USU']; ?></td>
                    <td><?php echo $arr[$row['EML_MOD']]; ?></td>
                    <td><?php echo $row['EML_STP']; ?></td>
                    <td class="bc">
                        <?php if($this->per_edt){?><a class="btn-pdr" href="<?php echo $this->url(array('controller' => $this->controller, 'action' => 'edit', 'id' => $row['EML_ID'])); ?>">Editar</a><?php }?>
                        <?php if($this->per_del && $row['EML_STA'] == 0){?><a class="btn-pdr" href="javascript:void(0);" onclick="list_delete_msg('<?php echo $this->controller; ?>', <?php echo $row['EML_ID'] ?>, $(this), '<?php echo $row['DIC_NOM'] ?>');">Deletar</a><?php }?>
                    </td>
                </tr>
            <?php } ?>
        </tbody>
    </table>
</div>
<?php echo $this->paginationControl($this->paginator, 'Sliding', 'pagination.phtml'); ?>